#ifndef PM_PANEL_COST_H_INCLUDED
#define PM_PANEL_COST_H_INCLUDED

#include "panelcostgui.h"
#include "main.h"
#include "pm/cost.h"

class PanelCost : public PanelCostGui
{
	enum COLS {
		COL_NAME,
		COL_UNIT_COST,
		COL_QUANTITY,
		COL_COST,
		COL_DATE,
		COL_TASK
	};
	
public:
	PanelCost(wxWindow* parent);

protected:
	void AddCost(const pm::CostInfo& cost);
	void SetCost(long item, const pm::CostInfo& cost);
	
	void OnProjectLoaded(wxCommandEvent& event);
	void OnCostAdded(pmEvent<pm::Cost>& event);
	void OnCostUpdated(pmEvent<pm::Cost>& event);
	
	virtual void OnAddCost( wxCommandEvent& event );
	virtual void OnItemActivated( wxListEvent& event );
};

#endif // PM_PANEL_COST_H_INCLUDED
